package top.tangyh.lamp.care.vo.result;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.tangyh.lamp.care.entity.BHl7Gm;

/**
 * 过敏类
 *
 * @Author:
 * @Date:
 */
@Data
@Schema(description = "过敏信息类")
public class GmOutVO {

    private Long id;

    @Schema(description = "病人识别号")
    private String patientIdent;

    @Schema(description = "过敏类型代码")
    private String typeIdent;

    @Schema(description = "过敏类型代码")
    private String typeName;

    @Schema(description = "过敏名称")
    private String gmName;

    @Schema(description = "过敏源代码")
    private String gmyCode;

    @Schema(description = "过敏源名称")
    private String gmyName;

    @Schema(description = "过敏情况描述")
    private String gmDesc;

    public GmOutVO() {

    }

    public GmOutVO(BHl7Gm gmPO) {
        this.id = gmPO.getId();
        this.patientIdent = gmPO.getPatientIdent();
        this.typeIdent = gmPO.getTypeIdent();
        this.typeName = gmPO.getTypeName();
        this.gmName = gmPO.getGmName();
        this.gmyCode = gmPO.getGmyCode();
        this.gmyName = gmPO.getGmyName();
        this.gmDesc = gmPO.getGmDesc();
    }

}
